﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMRView.Extensions.Interface
{
    /// <summary>
    /// 保存模式，当为None使用默认模式
    /// </summary>
    public enum SavePattern
    {
        Default = 0,
        Stream = 1,
        Xml = 2,
    }

    /// <summary>
    /// 存储操作接口，用户需要实现具体的存储细节
    /// </summary>
    public interface IStorage
    {
        /// <summary>
        /// 存储流操作具体函数
        /// </summary>
        /// <param name="stream"></param>
        void Save(SavePattern pattern = SavePattern.Default);

    }
}
